package com.example.mapper.wechat;

import com.example.pojo.wechat.BrokenBike;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName BrokenBikeMapper
 * @Description: com.example.mapper.wechat
 * @Auther: xiwd
 * @Date: 2022/4/19 - 04 - 19 - 11:49
 * @version: 1.0
 */
public interface BrokenBikeMapper {
    //properties

    //methods

    /**
     * 查询所有的损坏单车记录
     * @return
     */
    public abstract List<BrokenBike> selectBrokenBikesAll();


    /**
     * 添加损坏单车记录
     * @param brokenBike
     */
    public abstract Integer addBrokenBikeRecord(BrokenBike brokenBike);

    /**
     * 根据id修改BrokenBike的状态值
     * @param id
     * @param status
     * @return
     */
    public abstract Integer updateBrokenBikeStatusByID(@Param(value = "id") Integer id,
                                                       @Param(value = "status") Integer status);


}
